<?Lassoscript 
// Last modified 12/22/11 by ECL, Landmann InterActive

// FUNCTIONALITY
// Detail page

// CHANGE NOTES
// 12/18/07
// Recoded for CMS v 3.0
// 6/9/09
// Added Build Dropdowns
// 7/7/09
// Added Build Gallery
// 10/30/09 
// Removed siteconfig as it is already included in urlhandler.
// 8/7/11
// Added Slider
// 12/22/11
// Added it_fallback tag for some commonly-changed files, including:
//		build_detail.inc
//		build_dropdown.inc
//		build_footer.inc

// Debugging
// Var('svDebug' = 'Y');

// Build the Page Content Variables
it_fallback(-Filename=(($svLocalHelpersPath)+'build_detail.inc'));

// Build Navigation
Include(($svBaseHelpersPath)+'build_nav.inc');

// Build Dropdowns
it_fallback(-Filename=(($svLocalHelpersPath)+'build_dropdown.inc'));

// Build Gallery
// This check for zero is necessary because the default value is zero on GalleryGroupID
If((Var('vGalleryGroupID') != '') && (Var('vGalleryGroupID') != '0'));
	Include(($svBaseHelpersPath)+'build_gallery.inc');
/If;

// Build Slider Javascript
// This check for zero is necessary because the default value is zero on SliderGroupID
If((Var('vSliderGroupID') != '') && (Var('vSliderGroupID') != '0'));
	Include(($svBaseHelpersPath)+'build_sliderJS.inc');
/If;

// Build the Portfolio - Do not include on Quicksearch pages
If(Var('SearchType') != 'QS');
	Include(($svBaseHelpersPath)+'build_portfolio.inc');
/If;

// Build the Footer
it_fallback(-Filename=(($svLocalHelpersPath)+'build_footer.inc'));

// Call the Header
Include(($svBaseHelpersPath)+'page_header.inc');

// Call the Template
Include(($svTmpltsPath)+($svSys_DefaultTemplate));

?>
